﻿
using HiSport.Core.Entities;
using HiSport.Core.Entity;
using HiSport.Core.Enum;
using System.ComponentModel.DataAnnotations;

namespace HiSport.Application.System.User.Dtos;

public class UserInput :Entity
{
    /// <summary>
    /// 状态
    /// </summary>
    public StatusEnum Status { get; set; }
}

public class PageUserInput : BasePageInput
{
    /// <summary>
    /// 账号
    /// </summary>
    public string Account { get; set; }

    /// <summary>
    /// 姓名
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 手机号
    /// </summary>
    public string Phone { get; set; }

}

public class AddUserInput : SysUser
{
    /// <summary>
    /// 账号
    /// </summary>
    [Required(ErrorMessage = "账号不能为空")]
    public override string Account { get; set; }

    /// <summary>
    /// 真实姓名
    /// </summary>
    [Required(ErrorMessage = "名称")]
    public override string Name { get; set; }

    ///// <summary>
    ///// 角色集
    ///// </summary>
    //public List<long> RoleIdList { get; set; }

    ///// <summary>
    ///// 扩展机构集合
    ///// </summary>
    //public List<SysUserExtOrg> ExtOrgIdList { get; set; }
}

public class UpdateUserInput : AddUserInput
{
}


public class ResetPwdUserInput : Entity
{
}

public class ChangePwdInput
{
    /// <summary>
    /// 当前密码
    /// </summary>
    [Required(ErrorMessage = "当前密码不能为空")]
    public string PasswordOld { get; set; }

    /// <summary>
    /// 新密码
    /// </summary>
    [Required(ErrorMessage = "新密码不能为空")]
    [StringLength(20, MinimumLength = 5, ErrorMessage = "密码需要大于5个字符")]
    public string PasswordNew { get; set; }
}